/**
 * fulihui.com Inc.
 * Copyright (c) 2015-2016 All Rights Reserved.
 */
package com.fulihui.usercore.api;

import org.near.servicesupport.result.BaseResult;
import org.near.servicesupport.result.TSingleResult;

import com.fulihui.usercore.dto.UserAddressExtDTO;
import com.fulihui.usercore.request.address.ext.UserAddressExtQueryRequest;
import com.fulihui.usercore.request.address.ext.UserAddressExtSaveRequest;

/**
 * 分表分库 无需修改
 * 用户身份证认证服务
 * @author zhangyingjie
 * @version $Id: v 0.1 2017年07月13日 16:58 zhangyingjie Exp $
 */
public interface UserAddressExtService {
    /**
     * 添加
     * @param request
     * @return
     */
    BaseResult insert(UserAddressExtSaveRequest request);

    /**
     * 修改
     * @param request
     * @return
     */
    BaseResult update(UserAddressExtSaveRequest request);

    /**
     * 根据userId 查询一条认证信息
     * @param request
     * @return
     */
    TSingleResult<UserAddressExtDTO> queryByUserId(UserAddressExtQueryRequest request);
}
